<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: ProtocolDataUnit Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_protocol_data_unit-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ProtocolDataUnit Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Protocol Data Unit class.  
 <a href="class_protocol_data_unit.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_protocol_data_unit_8h_source.html">ProtocolDataUnit.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ProtocolDataUnit:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_protocol_data_unit.png" usemap="#ProtocolDataUnit_map" alt=""/>
  <map id="ProtocolDataUnit_map" name="ProtocolDataUnit_map">
<area href="class_token.html" title="Token class. " alt="Token" shape="rect" coords="0,56,106,80"/>
<area href="class_entity.html" title="Entity class. " alt="Entity" shape="rect" coords="0,0,106,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2103a889317ce5ea0fdce010c1c3bddd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a2103a889317ce5ea0fdce010c1c3bddd">ProtocolDataUnit</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:a2103a889317ce5ea0fdce010c1c3bddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, but previous and next.  <a href="#a2103a889317ce5ea0fdce010c1c3bddd">More...</a><br/></td></tr>
<tr class="separator:a2103a889317ce5ea0fdce010c1c3bddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fd7c127fa6524797669da51a3929899"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a6fd7c127fa6524797669da51a3929899">ProtocolDataUnit</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:a6fd7c127fa6524797669da51a3929899"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters.  <a href="#a6fd7c127fa6524797669da51a3929899">More...</a><br/></td></tr>
<tr class="separator:a6fd7c127fa6524797669da51a3929899"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90ac3f7a0d9bdde1bcb05f13e0abaf4c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a90ac3f7a0d9bdde1bcb05f13e0abaf4c">ProtocolDataUnit</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:a90ac3f7a0d9bdde1bcb05f13e0abaf4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic PDU ID creation.  <a href="#a90ac3f7a0d9bdde1bcb05f13e0abaf4c">More...</a><br/></td></tr>
<tr class="separator:a90ac3f7a0d9bdde1bcb05f13e0abaf4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61ccb4e690601f8906ad0f5cb995bc97"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a61ccb4e690601f8906ad0f5cb995bc97">ProtocolDataUnit</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:a61ccb4e690601f8906ad0f5cb995bc97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic PDU ID creation.  <a href="#a61ccb4e690601f8906ad0f5cb995bc97">More...</a><br/></td></tr>
<tr class="separator:a61ccb4e690601f8906ad0f5cb995bc97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af23de900b9dd30746f5badb43a9171a6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#af23de900b9dd30746f5badb43a9171a6">ProtocolDataUnit</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:af23de900b9dd30746f5badb43a9171a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic PDU ID creation.  <a href="#af23de900b9dd30746f5badb43a9171a6">More...</a><br/></td></tr>
<tr class="separator:af23de900b9dd30746f5badb43a9171a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add4991f76d69a178bdecdd95e48205c2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#add4991f76d69a178bdecdd95e48205c2">ProtocolDataUnit</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:add4991f76d69a178bdecdd95e48205c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic PDU ID creation.  <a href="#add4991f76d69a178bdecdd95e48205c2">More...</a><br/></td></tr>
<tr class="separator:add4991f76d69a178bdecdd95e48205c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74b060730431ea9b3fd969a4611fc4de"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a74b060730431ea9b3fd969a4611fc4de">ProtocolDataUnit</a> (std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; token, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:a74b060730431ea9b3fd969a4611fc4de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that takes a <a class="el" href="class_token.html" title="Token class. ">Token</a> and pduSize as parameter.  <a href="#a74b060730431ea9b3fd969a4611fc4de">More...</a><br/></td></tr>
<tr class="separator:a74b060730431ea9b3fd969a4611fc4de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d4bd6fe13c8cbb6cec40bd60cbeaf67"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a9d4bd6fe13c8cbb6cec40bd60cbeaf67">ProtocolDataUnit</a> (std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; token, unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a9d4bd6fe13c8cbb6cec40bd60cbeaf67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that takes a <a class="el" href="class_token.html" title="Token class. ">Token</a> and pduSize as parameter.  <a href="#a9d4bd6fe13c8cbb6cec40bd60cbeaf67">More...</a><br/></td></tr>
<tr class="separator:a9d4bd6fe13c8cbb6cec40bd60cbeaf67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff0a0c4b5851115f75ddee903bef0419"><td class="memItemLeft" align="right" valign="top">unsigned short int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#aff0a0c4b5851115f75ddee903bef0419">getTtl</a> () const </td></tr>
<tr class="memdesc:aff0a0c4b5851115f75ddee903bef0419"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets current TTL value.  <a href="#aff0a0c4b5851115f75ddee903bef0419">More...</a><br/></td></tr>
<tr class="separator:aff0a0c4b5851115f75ddee903bef0419"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdaa8ab1e636b146205e4cd2aecd81f5"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#abdaa8ab1e636b146205e4cd2aecd81f5">getPduSize</a> () const </td></tr>
<tr class="memdesc:abdaa8ab1e636b146205e4cd2aecd81f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets PDU size or length in bytes.  <a href="#abdaa8ab1e636b146205e4cd2aecd81f5">More...</a><br/></td></tr>
<tr class="separator:abdaa8ab1e636b146205e4cd2aecd81f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42a8e571a64f65379e3dfc719960ce53"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a42a8e571a64f65379e3dfc719960ce53">setTtl</a> (unsigned short int <a class="el" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>)</td></tr>
<tr class="memdesc:a42a8e571a64f65379e3dfc719960ce53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets TTL (Time To Live) parameter.  <a href="#a42a8e571a64f65379e3dfc719960ce53">More...</a><br/></td></tr>
<tr class="separator:a42a8e571a64f65379e3dfc719960ce53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acef2f04f3183ecfe20126c6faed978ff"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#acef2f04f3183ecfe20126c6faed978ff">setPduSize</a> (unsigned int <a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>)</td></tr>
<tr class="memdesc:acef2f04f3183ecfe20126c6faed978ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets PDU size in bytes.  <a href="#acef2f04f3183ecfe20126c6faed978ff">More...</a><br/></td></tr>
<tr class="separator:acef2f04f3183ecfe20126c6faed978ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01adc1a7830a1a40af4daff835226ef3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a01adc1a7830a1a40af4daff835226ef3">decrementTtl</a> ()</td></tr>
<tr class="memdesc:a01adc1a7830a1a40af4daff835226ef3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrement TTL value.  <a href="#a01adc1a7830a1a40af4daff835226ef3">More...</a><br/></td></tr>
<tr class="separator:a01adc1a7830a1a40af4daff835226ef3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_token"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_token')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_token.html">Token</a></td></tr>
<tr class="memitem:a8bf8338e7e065f2a13a51fd7286ec994 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>)</td></tr>
<tr class="memdesc:a8bf8338e7e065f2a13a51fd7286ec994 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, but previous and next.  <a href="#a8bf8338e7e065f2a13a51fd7286ec994">More...</a><br/></td></tr>
<tr class="separator:a8bf8338e7e065f2a13a51fd7286ec994 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2750086d817a19cf445bbf3beb2fbc7a inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a2750086d817a19cf445bbf3beb2fbc7a">Token</a> (unsigned int <a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a>, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>)</td></tr>
<tr class="memdesc:a2750086d817a19cf445bbf3beb2fbc7a inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters.  <a href="#a2750086d817a19cf445bbf3beb2fbc7a">More...</a><br/></td></tr>
<tr class="separator:a2750086d817a19cf445bbf3beb2fbc7a inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae074217cfca237face1c433bf62496d9 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae074217cfca237face1c433bf62496d9">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>)</td></tr>
<tr class="memdesc:ae074217cfca237face1c433bf62496d9 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic token ID creation.  <a href="#ae074217cfca237face1c433bf62496d9">More...</a><br/></td></tr>
<tr class="separator:ae074217cfca237face1c433bf62496d9 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a650ec39ddda6680a78802727b249bdf3 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a650ec39ddda6680a78802727b249bdf3">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>)</td></tr>
<tr class="memdesc:a650ec39ddda6680a78802727b249bdf3 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic token ID creation.  <a href="#a650ec39ddda6680a78802727b249bdf3">More...</a><br/></td></tr>
<tr class="separator:a650ec39ddda6680a78802727b249bdf3 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b3d5c356b5afbd6937197b849293b45 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a4b3d5c356b5afbd6937197b849293b45">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a4b3d5c356b5afbd6937197b849293b45 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters (but previous and next), automatic token ID creation.  <a href="#a4b3d5c356b5afbd6937197b849293b45">More...</a><br/></td></tr>
<tr class="separator:a4b3d5c356b5afbd6937197b849293b45 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08c7794a798701cde7a870bf5b4bfef9 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a08c7794a798701cde7a870bf5b4bfef9">Token</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, int <a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a08c7794a798701cde7a870bf5b4bfef9 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor with parameters, automatic token ID creation.  <a href="#a08c7794a798701cde7a870bf5b4bfef9">More...</a><br/></td></tr>
<tr class="separator:a08c7794a798701cde7a870bf5b4bfef9 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7d59eaac1535df1433357d5d372f84 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a3d7d59eaac1535df1433357d5d372f84">~Token</a> ()</td></tr>
<tr class="separator:a3d7d59eaac1535df1433357d5d372f84 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1251a6a9395ed89aac82e88f4c110335 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">setExplicitRoute</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute)</td></tr>
<tr class="memdesc:a1251a6a9395ed89aac82e88f4c110335 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the explicit route for this token and erases previously recorded route.  <a href="#a1251a6a9395ed89aac82e88f4c110335">More...</a><br/></td></tr>
<tr class="separator:a1251a6a9395ed89aac82e88f4c110335 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56e59f6ff2f7ad073d0456f314c3f525 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a56e59f6ff2f7ad073d0456f314c3f525">getAbsoluteGenerationTime</a> () const </td></tr>
<tr class="memdesc:a56e59f6ff2f7ad073d0456f314c3f525 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the (reference to) route attached to token.  <a href="#a56e59f6ff2f7ad073d0456f314c3f525">More...</a><br/></td></tr>
<tr class="separator:a56e59f6ff2f7ad073d0456f314c3f525 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9a6cefbb86e8fdf95cb26abc2db3f72 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual std::vector<br class="typebreak"/>
&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae9a6cefbb86e8fdf95cb26abc2db3f72">getExplicitRoute</a> () const </td></tr>
<tr class="memdesc:ae9a6cefbb86e8fdf95cb26abc2db3f72 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get explicit route.  <a href="#ae9a6cefbb86e8fdf95cb26abc2db3f72">More...</a><br/></td></tr>
<tr class="separator:ae9a6cefbb86e8fdf95cb26abc2db3f72 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37005881ac49bf1895a635836ae276bb inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a37005881ac49bf1895a635836ae276bb">isRouteBeingRecorded</a> () const </td></tr>
<tr class="memdesc:a37005881ac49bf1895a635836ae276bb inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get value of flag recordThisRoute.  <a href="#a37005881ac49bf1895a635836ae276bb">More...</a><br/></td></tr>
<tr class="separator:a37005881ac49bf1895a635836ae276bb inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac76ff85d0a523ec84dc4f4d3c106f94 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual std::vector<br class="typebreak"/>
&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#aac76ff85d0a523ec84dc4f4d3c106f94">getRecordedRoute</a> () const </td></tr>
<tr class="memdesc:aac76ff85d0a523ec84dc4f4d3c106f94 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get recorded route so far.  <a href="#aac76ff85d0a523ec84dc4f4d3c106f94">More...</a><br/></td></tr>
<tr class="separator:aac76ff85d0a523ec84dc4f4d3c106f94 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cbb080826adf0f03045d6f9a89a1b66 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8cbb080826adf0f03045d6f9a89a1b66">setRecordThisRoute</a> ()</td></tr>
<tr class="memdesc:a8cbb080826adf0f03045d6f9a89a1b66 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set flag to record the route followed by token to TRUE.  <a href="#a8cbb080826adf0f03045d6f9a89a1b66">More...</a><br/></td></tr>
<tr class="separator:a8cbb080826adf0f03045d6f9a89a1b66 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44dcd55816044e0c88d71612a186987f inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a44dcd55816044e0c88d71612a186987f">setDoNotRecordThisRoute</a> ()</td></tr>
<tr class="memdesc:a44dcd55816044e0c88d71612a186987f inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unset flag to record the route followed by token (set to FALSE).  <a href="#a44dcd55816044e0c88d71612a186987f">More...</a><br/></td></tr>
<tr class="separator:a44dcd55816044e0c88d71612a186987f inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2f0a14dbaf5044c7712dbfbf53803eb inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#af2f0a14dbaf5044c7712dbfbf53803eb">addHopToRecordedRoute</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; hop)</td></tr>
<tr class="memdesc:af2f0a14dbaf5044c7712dbfbf53803eb inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Record hop within recorded route, if flag is set.  <a href="#af2f0a14dbaf5044c7712dbfbf53803eb">More...</a><br/></td></tr>
<tr class="separator:af2f0a14dbaf5044c7712dbfbf53803eb inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a006cf6391fcded1571a375fdf9748918 inherit pub_methods_class_token"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a006cf6391fcded1571a375fdf9748918">updateHopsFromExplicitRoute</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; currentHop)</td></tr>
<tr class="memdesc:a006cf6391fcded1571a375fdf9748918 inherit pub_methods_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update previous/next hops from the explicit route vector to prepare the token to be forwarded within a route/path.  <a href="#a006cf6391fcded1571a375fdf9748918">More...</a><br/></td></tr>
<tr class="separator:a006cf6391fcded1571a375fdf9748918 inherit pub_methods_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_entity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_entity.html">Entity</a></td></tr>
<tr class="memitem:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_entity.html#ac2da1e8a32161accc56f39ac52cebd86">~Entity</a> ()=0</td></tr>
<tr class="memdesc:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make this abstract (pure virtual), cannot be instantiated.  <a href="#ac2da1e8a32161accc56f39ac52cebd86">More...</a><br/></td></tr>
<tr class="separator:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a77fa6a4183a5810c81788f32da6590d1"><td class="memItemLeft" align="right" valign="top">unsigned short int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a></td></tr>
<tr class="memdesc:a77fa6a4183a5810c81788f32da6590d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Time to Live for this PDU. Default will be 128.  <a href="#a77fa6a4183a5810c81788f32da6590d1">More...</a><br/></td></tr>
<tr class="separator:a77fa6a4183a5810c81788f32da6590d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52885cda1629baaace8edf4a93428c96"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a></td></tr>
<tr class="memdesc:a52885cda1629baaace8edf4a93428c96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames.  <a href="#a52885cda1629baaace8edf4a93428c96">More...</a><br/></td></tr>
<tr class="separator:a52885cda1629baaace8edf4a93428c96"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_class_token"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_token')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_token.html">Token</a></td></tr>
<tr class="memitem:a29cd5cc1dd308d278737f1bdb293441d inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a29cd5cc1dd308d278737f1bdb293441d">id</a></td></tr>
<tr class="memdesc:a29cd5cc1dd308d278737f1bdb293441d inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> unique ID.  <a href="#a29cd5cc1dd308d278737f1bdb293441d">More...</a><br/></td></tr>
<tr class="separator:a29cd5cc1dd308d278737f1bdb293441d inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8125cc8499770f87f3540c81f889e039 inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a></td></tr>
<tr class="memdesc:a8125cc8499770f87f3540c81f889e039 inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number.  <a href="#a8125cc8499770f87f3540c81f889e039">More...</a><br/></td></tr>
<tr class="separator:a8125cc8499770f87f3540c81f889e039 inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afefc7a53c3510da4a70ec2a9f15b9dc2 inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a></td></tr>
<tr class="memdesc:afefc7a53c3510da4a70ec2a9f15b9dc2 inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class).  <a href="#afefc7a53c3510da4a70ec2a9f15b9dc2">More...</a><br/></td></tr>
<tr class="separator:afefc7a53c3510da4a70ec2a9f15b9dc2 inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1647ede32e4d927f836a0f58342d77b2 inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a></td></tr>
<tr class="memdesc:a1647ede32e4d927f836a0f58342d77b2 inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Previous entity that had this token (for token routing).  <a href="#a1647ede32e4d927f836a0f58342d77b2">More...</a><br/></td></tr>
<tr class="separator:a1647ede32e4d927f836a0f58342d77b2 inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc3016125b848c7e88fc5dc8510762ef inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a></td></tr>
<tr class="memdesc:afc3016125b848c7e88fc5dc8510762ef inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Next entity that will have to process this token (to which entity the token has to be "sent", e.g., for which request service).  <a href="#afc3016125b848c7e88fc5dc8510762ef">More...</a><br/></td></tr>
<tr class="separator:afc3016125b848c7e88fc5dc8510762ef inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb12b6d97945606e022f63ef6f1057b9 inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a></td></tr>
<tr class="memdesc:afb12b6d97945606e022f63ef6f1057b9 inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Source entity of this token.  <a href="#afb12b6d97945606e022f63ef6f1057b9">More...</a><br/></td></tr>
<tr class="separator:afb12b6d97945606e022f63ef6f1057b9 inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf59bd26155dc10e574ee552065edaa6 inherit pub_attribs_class_token"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a></td></tr>
<tr class="memdesc:adf59bd26155dc10e574ee552065edaa6 inherit pub_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destination entity of this token.  <a href="#adf59bd26155dc10e574ee552065edaa6">More...</a><br/></td></tr>
<tr class="separator:adf59bd26155dc10e574ee552065edaa6 inherit pub_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_token"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_token')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_token.html">Token</a></td></tr>
<tr class="memitem:a8f73b3dffa8f905bdccb45abbf19aca6 inherit pro_attribs_class_token"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_route.html">Route</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#a8f73b3dffa8f905bdccb45abbf19aca6">route</a></td></tr>
<tr class="memdesc:a8f73b3dffa8f905bdccb45abbf19aca6 inherit pro_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_route.html" title="Route class. ">Route</a> object to provide explicit routing for the token, or to record followed routes.  <a href="#a8f73b3dffa8f905bdccb45abbf19aca6">More...</a><br/></td></tr>
<tr class="separator:a8f73b3dffa8f905bdccb45abbf19aca6 inherit pro_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1697de3383688ddbe8196cb392bf2ac inherit pro_attribs_class_token"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a></td></tr>
<tr class="memdesc:ae1697de3383688ddbe8196cb392bf2ac inherit pro_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">Absolute generation timestamp for this token (i.e., the clock time this token was generated). Needs <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object to set; if constructor without <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object is used, then this member will have a std::numeric_limits&lt;double&gt;::max() to denote an invalid timestamp.  <a href="#ae1697de3383688ddbe8196cb392bf2ac">More...</a><br/></td></tr>
<tr class="separator:ae1697de3383688ddbe8196cb392bf2ac inherit pro_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5c30f0a60ca47f772e51d06bf8a54c3 inherit pro_attribs_class_token"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a></td></tr>
<tr class="memdesc:af5c30f0a60ca47f772e51d06bf8a54c3 inherit pro_attribs_class_token"><td class="mdescLeft">&#160;</td><td class="mdescRight">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU.  <a href="#af5c30f0a60ca47f772e51d06bf8a54c3">More...</a><br/></td></tr>
<tr class="separator:af5c30f0a60ca47f772e51d06bf8a54c3 inherit pro_attribs_class_token"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Protocol Data Unit class. </p>
<dl class="section user"><dt>Description</dt><dd>This class inherits from <a class="el" href="class_token.html" title="Token class. ">Token</a> class and models a PDU or Protocol Data Unit. This class will extend <a class="el" href="class_token.html" title="Token class. ">Token</a> and add features for computer networks, such as TTL (Time To Live) and size. </dd></dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8h_source.html#l00033">33</a> of file <a class="el" href="_protocol_data_unit_8h_source.html">ProtocolDataUnit.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2103a889317ce5ea0fdce010c1c3bddd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, but previous and next. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>August 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>.</dd></dl>
<p>ID is provided by parameter. AbsoluteGenerationTime is marked as invalid by putting max value of double (since to mark the timestamp, simulatorGlobals object is needed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>PDU unique ID. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00035">35</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;                                                                                                                                                                                              : </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(<span class="keywordtype">id</span>, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a6fd7c127fa6524797669da51a3929899"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters. </p>
<p>ID is provided by parameter. AbsoluteGenerationTime is marked as invalid by putting max value of double (since to mark the timestamp, simulatorGlobals object is needed.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">id</td><td>PDU unique ID. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this PDU (for PDU routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this PDU (to which entity the token has to be "sent", e.g., for which request service). </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00054">54</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                                                                                                                                                                                                                                                          : </div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(<span class="keywordtype">id</span>, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a90ac3f7a0d9bdde1bcb05f13e0abaf4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters (but previous and next), automatic PDU ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic PDU ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic PDU ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00071">71</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;                                                                                                                                                                                                                 : </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(simulatorGlobals, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a61ccb4e690601f8906ad0f5cb995bc97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, automatic PDU ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic PDU ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic PDU ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this PDU (for PDU routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this PDU (to which entity the PDU has to be "sent", e.g., for which request service). </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00090">90</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                                                                                                                            : </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(simulatorGlobals, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af23de900b9dd30746f5badb43a9171a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters (but previous and next), automatic PDU ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic PDU ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic PDU ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00109">109</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                                                                                                                : </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(simulatorGlobals, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, explicitRoute), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="add4991f76d69a178bdecdd95e48205c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>associatedEntity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>previous</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>next</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor with parameters, automatic PDU ID creation. </p>
<p>This constructor uses <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object function to obtain a globally unique, automatic PDU ID, and also the clock timestamp of generation.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, from which an automatic PDU ID will be obtained. </td></tr>
    <tr><td class="paramname">priority</td><td>PDU priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">associatedEntity</td><td>Reference to associated <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object (typically another child of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> class). </td></tr>
    <tr><td class="paramname">source</td><td>Source entity of this PDU. </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity of this PDU. </td></tr>
    <tr><td class="paramname">previous</td><td>Previous entity that had this PDU (for PDU routing). </td></tr>
    <tr><td class="paramname">next</td><td>Next entity that will have to process this PDU (to which entity the PDU has to be "sent", e.g., for which request service). </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00130">130</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                                                                                                                                                                            : </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(simulatorGlobals, <a class="code" href="class_token.html#a8125cc8499770f87f3540c81f889e039">priority</a>, <a class="code" href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">associatedEntity</a>, <a class="code" href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">source</a>, <a class="code" href="class_token.html#adf59bd26155dc10e574ee552065edaa6">destination</a>, <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a>, <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a>, explicitRoute), <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>(<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>), <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>(<a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>) {</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afefc7a53c3510da4a70ec2a9f15b9dc2"><div class="ttname"><a href="class_token.html#afefc7a53c3510da4a70ec2a9f15b9dc2">Token::associatedEntity</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; associatedEntity</div><div class="ttdoc">Reference to associated Entity object (typically another child of Entity class). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00055">Token.h:55</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_afb12b6d97945606e022f63ef6f1057b9"><div class="ttname"><a href="class_token.html#afb12b6d97945606e022f63ef6f1057b9">Token::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Source entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00058">Token.h:58</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_adf59bd26155dc10e574ee552065edaa6"><div class="ttname"><a href="class_token.html#adf59bd26155dc10e574ee552065edaa6">Token::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity of this token. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00059">Token.h:59</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
<div class="ttc" id="class_token_html_a8125cc8499770f87f3540c81f889e039"><div class="ttname"><a href="class_token.html#a8125cc8499770f87f3540c81f889e039">Token::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00052">Token.h:52</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a74b060730431ea9b3fd969a4611fc4de"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td>
          <td class="paramname"><em>token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor that takes a <a class="el" href="class_token.html" title="Token class. ">Token</a> and pduSize as parameter. </p>
<p>This constructor copies all fields form a <a class="el" href="class_token.html" title="Token class. ">Token</a> into a new PDU, and adds pduSize. Note that if the token is nullptr, then an exception will be thrown here.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">token</td><td>Already existing <a class="el" href="class_token.html" title="Token class. ">Token</a> object to be copied. </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00145">145</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                                                                                  : <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(token-&gt;id, token-&gt;priority, token-&gt;associatedEntity,</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                                                                                              token-&gt;source, token-&gt;destination) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a> = token-&gt;previous;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a> = token-&gt;next;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    this-&gt;<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a> = <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    this-&gt;<a class="code" href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">setExplicitRoute</a>(token-&gt;getExplicitRoute());</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a> = <a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = token-&gt;getAbsoluteGenerationTime();</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a> = token-&gt;isRouteBeingRecorded();</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_a1251a6a9395ed89aac82e88f4c110335"><div class="ttname"><a href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">Token::setExplicitRoute</a></div><div class="ttdeci">virtual void setExplicitRoute(std::vector&lt; std::shared_ptr&lt; Entity &gt;&gt; explicitRoute)</div><div class="ttdoc">Set the explicit route for this token and erases previously recorded route. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00155">Token.cpp:155</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a9d4bd6fe13c8cbb6cec40bd60cbeaf67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ProtocolDataUnit::ProtocolDataUnit </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td>
          <td class="paramname"><em>token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor that takes a <a class="el" href="class_token.html" title="Token class. ">Token</a> and pduSize as parameter. </p>
<p>This constructor copies all fields form a <a class="el" href="class_token.html" title="Token class. ">Token</a> into a new PDU, and adds pduSize. Note that if the token is nullptr, then an exception will be thrown here.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">token</td><td>Already existing <a class="el" href="class_token.html" title="Token class. ">Token</a> object to be copied. </td></tr>
    <tr><td class="paramname">pduSize</td><td>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00167">167</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                                                                                                                                  : <a class="code" href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token</a>(token-&gt;id,</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;                                                                                                                                                  token-&gt;priority,</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                                                                                                                                                  token-&gt;associatedEntity,</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                                                                                                                                                  token-&gt;source,</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                                                                                                                                                  token-&gt;destination) {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <a class="code" href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">previous</a> = token-&gt;previous;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">next</a> = token-&gt;next;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    this-&gt;<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a> = <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    this-&gt;<a class="code" href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">setExplicitRoute</a>(explicitRoute);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a> = <a class="code" href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <a class="code" href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">absoluteGenerationTime</a> = token-&gt;getAbsoluteGenerationTime();</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <a class="code" href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">recordThisRoute</a> = token-&gt;isRouteBeingRecorded();</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="ttc" id="class_token_html_a1647ede32e4d927f836a0f58342d77b2"><div class="ttname"><a href="class_token.html#a1647ede32e4d927f836a0f58342d77b2">Token::previous</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; previous</div><div class="ttdoc">Previous entity that had this token (for token routing). </div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00056">Token.h:56</a></div></div>
<div class="ttc" id="class_token_html_afc3016125b848c7e88fc5dc8510762ef"><div class="ttname"><a href="class_token.html#afc3016125b848c7e88fc5dc8510762ef">Token::next</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; next</div><div class="ttdoc">Next entity that will have to process this token (to which entity the token has to be &amp;quot;sent&amp;quot;...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00057">Token.h:57</a></div></div>
<div class="ttc" id="class_token_html_ae1697de3383688ddbe8196cb392bf2ac"><div class="ttname"><a href="class_token.html#ae1697de3383688ddbe8196cb392bf2ac">Token::absoluteGenerationTime</a></div><div class="ttdeci">double absoluteGenerationTime</div><div class="ttdoc">Absolute generation timestamp for this token (i.e., the clock time this token was generated)...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00047">Token.h:47</a></div></div>
<div class="ttc" id="class_token_html_af5c30f0a60ca47f772e51d06bf8a54c3"><div class="ttname"><a href="class_token.html#af5c30f0a60ca47f772e51d06bf8a54c3">Token::recordThisRoute</a></div><div class="ttdeci">bool recordThisRoute</div><div class="ttdoc">True: route followed by token/PDU must be recorded. False: do not record route followed by token/PDU...</div><div class="ttdef"><b>Definition:</b> <a href="_token_8h_source.html#l00048">Token.h:48</a></div></div>
<div class="ttc" id="class_token_html_a8bf8338e7e065f2a13a51fd7286ec994"><div class="ttname"><a href="class_token.html#a8bf8338e7e065f2a13a51fd7286ec994">Token::Token</a></div><div class="ttdeci">Token(unsigned int id, int priority, std::shared_ptr&lt; Entity &gt; associatedEntity, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination)</div><div class="ttdoc">Constructor with parameters, but previous and next. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00034">Token.cpp:34</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
<div class="ttc" id="class_token_html_a1251a6a9395ed89aac82e88f4c110335"><div class="ttname"><a href="class_token.html#a1251a6a9395ed89aac82e88f4c110335">Token::setExplicitRoute</a></div><div class="ttdeci">virtual void setExplicitRoute(std::vector&lt; std::shared_ptr&lt; Entity &gt;&gt; explicitRoute)</div><div class="ttdoc">Set the explicit route for this token and erases previously recorded route. </div><div class="ttdef"><b>Definition:</b> <a href="_token_8cpp_source.html#l00155">Token.cpp:155</a></div></div>
<div class="ttc" id="_protocol_data_unit_8h_html_aa9b73542f958f4edfe5ebea8efe0ff8b"><div class="ttname"><a href="_protocol_data_unit_8h.html#aa9b73542f958f4edfe5ebea8efe0ff8b">DEFAULT_TTL</a></div><div class="ttdeci">#define DEFAULT_TTL</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00024">ProtocolDataUnit.h:24</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a01adc1a7830a1a40af4daff835226ef3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ProtocolDataUnit::decrementTtl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decrement TTL value. </p>
<p>Decrements the TTL value by one. Typically used by a hop when receiving a PDU. </p>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00187">187</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                                    {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    --<a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="abdaa8ab1e636b146205e4cd2aecd81f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int ProtocolDataUnit::getPduSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets PDU size or length in bytes. </p>
<dl class="section return"><dt>Returns</dt><dd>Size in bytes. </dd></dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00229">229</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                                                {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="aff0a0c4b5851115f75ddee903bef0419"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short int ProtocolDataUnit::getTtl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets current TTL value. </p>
<dl class="section return"><dt>Returns</dt><dd>TTL value. </dd></dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00197">197</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                                                  {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;}</div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="acef2f04f3183ecfe20126c6faed978ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ProtocolDataUnit::setPduSize </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pduSize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets PDU size in bytes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pduSize</td><td>Size of PDU in bytes. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00220">220</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                                                      {</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    this-&gt;<a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a> = <a class="code" href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">pduSize</a>;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}       </div>
<div class="ttc" id="class_protocol_data_unit_html_a52885cda1629baaace8edf4a93428c96"><div class="ttname"><a href="class_protocol_data_unit.html#a52885cda1629baaace8edf4a93428c96">ProtocolDataUnit::pduSize</a></div><div class="ttdeci">unsigned int pduSize</div><div class="ttdoc">Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so a...</div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00036">ProtocolDataUnit.h:36</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a42a8e571a64f65379e3dfc719960ce53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ProtocolDataUnit::setTtl </td>
          <td>(</td>
          <td class="paramtype">unsigned short int&#160;</td>
          <td class="paramname"><em>ttl</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets TTL (Time To Live) parameter. </p>
<p>The Time To Live controls the lifetime of a PDU. At each hop, the TTL is decremented. Once the TTL reaches zero, the hop (or router) will discard the PDU without forwarding it or passing it to upper layers. The TTL is a simple solution to prevent cycles in a network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ttl</td><td>TTL value. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_protocol_data_unit_8cpp_source.html#l00211">211</a> of file <a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                                                    {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    this-&gt;<a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a> = <a class="code" href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ttl</a>;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;}       </div>
<div class="ttc" id="class_protocol_data_unit_html_a77fa6a4183a5810c81788f32da6590d1"><div class="ttname"><a href="class_protocol_data_unit.html#a77fa6a4183a5810c81788f32da6590d1">ProtocolDataUnit::ttl</a></div><div class="ttdeci">unsigned short int ttl</div><div class="ttdoc">Time to Live for this PDU. Default will be 128. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00035">ProtocolDataUnit.h:35</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a52885cda1629baaace8edf4a93428c96"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int ProtocolDataUnit::pduSize</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Size or length of this PDU, typically in bytes. Notice that unsigned short int is not being used so as to accomodate for (really) jumbo frames. </p>

<p>Definition at line <a class="el" href="_protocol_data_unit_8h_source.html#l00036">36</a> of file <a class="el" href="_protocol_data_unit_8h_source.html">ProtocolDataUnit.h</a>.</p>

</div>
</div>
<a class="anchor" id="a77fa6a4183a5810c81788f32da6590d1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">unsigned short int ProtocolDataUnit::ttl</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Time to Live for this PDU. Default will be 128. </p>

<p>Definition at line <a class="el" href="_protocol_data_unit_8h_source.html#l00035">35</a> of file <a class="el" href="_protocol_data_unit_8h_source.html">ProtocolDataUnit.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_protocol_data_unit_8h_source.html">ProtocolDataUnit.h</a></li>
<li>QcnSim/<a class="el" href="_protocol_data_unit_8cpp_source.html">ProtocolDataUnit.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 6 2014 12:30:43 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
